CSE 1325 Script File Creation and

Lab Submission Information for

Dr. Tiernan's sections

Last Updated June 21, 2013

 

1.                    MINIMUM Required lab submission items for all assignments

a.        Script file (which will include a printout of the source file) (see 5 below)

b.        Source files (including all user defined .java files) i.e. the program files written by you (see 6 below)

c.         Any data files created by you and used in testing as recorded in the script file.

 

2.                    Submission time

a.        All files must be uploaded to Blackboard BEFORE the due date and time on the due date.

b.        Late labs (i.e. late e-mails) will receive a zero ( 0 ) grade unless prior arrangements have been made with the instructor

                          - You must e-mail the class instructor Dr. Tiernan for permission to turn in a lab late.
                          - Permission must be requested before the actual due date and time but not more than 18 hours before the due date and time
                          - Requests for late permission must include a reason for the request
                          - Late permission is given ONLY when class instructor Dr. Tiernan returns a e-mail to student that explicitly
                                grants late permission and notifies them of penalites

 

3.                    Required filename for zipped program files: proj#_100number_firstname_lastname.zip

a.        # : the lab assignment number (Lab Project 1, Lab Project 2, etc.)

b.        100number : Your University of Texas at Arlington ID number (often called your “1000” number)

c             FILES WHICH ARE NOT NAMED AS DESCRIBED ABOVE MAY NOT BE ABLE TO BE GRADED.

 

4.                    Submitting your work through Blackboard :

a.      Upload all your files, including the script file, from omega to your local machine using Terminal (Macs) or sftp (PCs). Do not open the files using MS Word! It does yucky things to the formatting. If you want to check the files before submitting to Blackboard use something like Crimson Editor or Notepad to view them. You can also e-mail files to yourself using alpine (mail system on omega) but the other systems are less likely to mess up the files.

b.     Put all of the relevant files in one directory and zip those files into a single file named as described above.

c.      Log into Blackboard for this class.

d.      Find the correct assignment and upload your zip file for that assignment. I will try to have a place for you to upload the design document separately.

e.      Blackboard will allow you to resubmit your other files before its due date and will record the time of submission.

 

5.                    How to make a script file.

                A script file is a recording of everything that is printed on the computer screen from the time the script session is started (with the command script ) until the script session is ended (with the command exit) . Following are all the steps needed to make the script file for your assignment. See the man (manual) page on omega for more info about script (omega> man script)

a.        Remove old compiled versions of the code with the command:

omega > rm *.class

b.        Start the recording of the script file that you will call scriptfilename . The scriptfilename should include your 100number (UTA ID), the word 'script', and the Lab number. Do NOT use the same name as the name of your Java files. For example you might call your script file 100numberscript# or 100numberscriptLab# .log . Use the command:

omega > script scriptfilename

c.         Using the cat command, print out the program source files (your Java classes/program) to the screen so that it is recorded in the script file. If you have multiple files, just cat them one after another. ( cat stands for concatenate)  As an example you might display two Java classes with:

omega > cat Point.java PointTest.java

d.        Print a listing of the current directory (to show that there is no compiled version of your lab in the current directory)

omega > ls -l

e.         Compile your Java classes, i.e. your source files

omega > javac PointTest.java Point.java

f.          List the directory again showing the new compiled files named Point.class and PointTest.class or whatever your classes are named

omega > ls -l

g.        Run the program by invoking java on the class that contains your main routine, for example PointTest or whatever your compiled program is named. Run any given sample data and your chosen data as well.

omega > java PointTest

h.        When you have run all the needed executions of your lab assignment, end the script session by typing

omega > exit

i .          To eliminate excess blank lines in your script file before printing you can do the following command. Remember this is using the scriptfilename as the input. You should save the resulting file into a new script file name ( newscriptfilename )

omega > col -b < scriptfilename > newscriptfilename

 

6.                    Coding Issues

a.      Submitted source code must compile and run without errors or warnings compiled with the javac compiler on the UTA omega LINIX computer OR on NetBeans as required in the program definition. This means that ALL choices the user can make when running your code must work properly and ALL inputs (excluding ones the lab instructions say you don't have the deal with) must work properly even if the input value is invalid; for example, a negative value for a month must NOT make your program crash.

        If your program does not compile, you will get a ZERO (0).

         If your program compiles but has warnings, you will get a ZERO (0).

         If your program crashes while the TA is testing it, you will get a ZERO (0).

b.        Working partial labs may be submitted for partial credit. A partial lab is one that only implements some of the requirements and that compiles and runs without errors or warnings.

c .         Be sure to follow the documentation guidelines discussed in class including indentation

d.        NO GLOBAL VARIABLES MAY BE USED IN YOUR CODE

e.         Constants are allowed in the form of final variable declarations